<section id="main" class="column"> <!-- announcements --> 
<?php
	if($this->result == true){
		print "<h4 class='alert_success'>De pagina is succesvol aangemaakt</h4>";
	}
	?>
<article class="module width_full"> <header>
<h3>Pagina Toevoegen</h3>
</header>
<div class="module_content">
	<form class="inputForm" method="POST" name="createPage">
		<fieldset>
			<p>
				<label for="title">Titel:</label> 
				<input class="post_message" type="text" name="title" value="Titel" />
			</p>
			<p>
				<label for="visible">Zichtbaar:</label> 
					<input type="radio" name="visible" value="1" checked />Ja
					<input type="radio" name="visible" value="0" />Nee 
			</p>
	
		</fieldset>
		<fieldset>
			<p>
				<label for="protected">Beschermd:</label> 
				<input type="radio" name="protected" value="1" >Ja 
				<input type="radio" name="protected" value="0" checked>Nee
			</p>
			<p>
				<label for="groupId">Groep</label>
				<select name="group">
					<option value="0">Geen</option>
					<?php
						foreach ($this->groups as $value){ 
						print "<option value=" . $value->id  . ">" . $value->name . "</option>";
						 } 
					?>
				</select>
			</p>
		</fieldset>
		<fieldset>
			<p>
				<label for="title">Auteur:</label>
				<select name="users">
					<?php
						foreach ($this->users as $value){ 
						print "<option value=" . $value->id  . ">" . $value->username . "</option>";
						 } 
					?>
					
				</select>
			</p>
			<p>
				<label for="title">Bovenliggende pagina:</label> 
				<select name="parent_id">
					<option value="0">Geen</option>
					<?php
						foreach ($this->subPages as $result){ 
						print "<option value=" . $result->id  . ">" . $result->name . "</option>";
						 } 
					?>
					
				</select>
			</p>
		</fieldset>
		<input type="submit" value="Opslaan" name="btn_AddPage">
	</form>
</div>
</article> </section>
